<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>邮箱管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" type="text/css" href="/Public/admin/layui/css/layui.css" media="all">
  <link rel="stylesheet" type="text/css" href="/Public/admin/bootstrap/css/bootstrap.css" media="all">
  <link rel="stylesheet" type="text/css" href="/Public/admin/global.css" media="all">
  <link rel="stylesheet" type="text/css" href="/Public/admin/css/personal.css" media="all">
</head>
<body>
<section class="layui-larry-box">
<blockquote class="layui-elem-quote mylog-info-tit">
  <ul class="layui-tab-title">
    <a href="/admin/guestemail/add"><li class="layui-btn"><i class="layui-icon"></i>添加邮箱</li></a>
  </ul>
</blockquote>
  <div class="larry-personal">
    <table class="layui-table">
    <colgroup>
      <col width="150">
      <col>
    </colgroup>
    <thead>
      <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>邮箱</th>
        <th>添加时间</th>
        <th>操作</th>
      </tr> 
    </thead>
    <tbody>
      <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
          <td><?php echo ($vo["id"]); ?></td>
          <td><?php echo ($vo["name"]); ?></td>
          <td><?php echo ($vo["email"]); ?></td>
          <td><?php echo (date("Y-m-d H:i:s",$vo["addtime"])); ?></td>
          <td> 
            <a href="/admin/guestemail/edit/id/<?php echo ($vo["id"]); ?>"><button class="layui-btn">修改</button></a>
            <a href="/admin/guestemail/del/id/<?php echo ($vo["id"]); ?>"><button class="layui-btn">删除</button></a>
          </td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </tbody>
    </table>
  </div>
</section>
<script src="/Public/admin/layui/layui.js" charset="utf-8"></script>
<script>
layui.use(['layer','form','laydate'], function(){
  var layer = layui.layer,
  laydate = layui.laydate,
  form = layui.form();
});
</script>
</body>
</html>